﻿#region

using Microsoft.AspNetCore.Http;

#endregion

namespace Vin.Extension.Framework.Login.ServiceInterface;

public interface ILoginService
{
    /// <summary>
    /// 校验
    /// </summary>
    /// <param name="context"></param>
    /// <returns></returns>
    public Task<object> VerifyAsync(HttpContext context);
    
    /// <summary>
    /// 登录
    /// </summary>
    /// <param name="context"></param>
    /// <returns></returns>
    public Task<string> LoginAsync(HttpContext context);

    /// <summary>
    /// 绑定
    /// </summary>
    /// <param name="context"></param>
    /// <returns></returns>
    public Task<bool> BindAsync(HttpContext context);
    
    /// <summary>
    /// 解绑
    /// </summary>
    /// <param name="context"></param>
    /// <returns></returns>
    public Task<bool> UnBindAsync(HttpContext context);
}